print-editor: Fix a critical
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 16:53:37 +0000 (12:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 12:15:55 +0000 (08:15 -0400)
GtkWindow is no longer a container, so don't call
gtk_container_add on it.

tests/print-editor.c

index a0a8fde4ee38c755209c95a5cc62261a2d30985b..646f3fe93f4f23d6a98393de7a179eb07973f167 100644 (file)
@@ -748,7 +748,7 @@ activate (GApplication *app)
   update_title (GTK_WINDOW (main_window));
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
-  gtk_container_add (GTK_CONTAINER (main_window), box);
+  gtk_window_set_child (GTK_WINDOW (main_window), box);
 
   /* Create document  */
   sw = gtk_scrolled_window_new (NULL, NULL);